//
//  Common.swift
//  XLWB
//
//  Created by key on 16/6/25.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

//通知消息
//表情删除按钮
let EmotionDeleteNoti = "EmotionDeleteNoti"

//点击表情button
let EmotionButtonNoti = "EmotionButtonNoti"

//应用主题颜色
let themeColor = UIColor.orangeColor()


//随机颜色
func randomColor() -> UIColor {
    
    let red = CGFloat(random()%256)
    
    let green = CGFloat(random()%256)
    
    let blue = CGFloat(random()%256)
    
    return RGB(red, green: green, blue: blue)
    
}

//指定颜色
func RGB(red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor {
    
    return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: 1)
    
}


//屏幕宽度
let screenW = UIScreen.mainScreen().bounds.size.width
//屏幕高度
let screenH = UIScreen.mainScreen().bounds.size.height


//网络登录请求参数
//App Key：3012224079
//App Secret：badbdde265b805136127f7d000ed948c
let APPKEY : String = "3012224079"
let APPSECRET : String = "badbdde265b805136127f7d000ed948c"
let REDIRECT_URI = "http://www.baidu.com"


//let APPKEY : String = "1779882900"
//let APPSECRET : String = "9ab3ec4932d3f5d87df2bd513de400b1"



